//
//  MCPullMenuCollectionViewCell.m
//  TLYLSF
//
//  Created by Canny on 2017/6/7.
//  Copyright © 2017年 MC. All rights reserved.
//

#import "MCPullMenuCollectionViewCell.h"
@interface MCPullMenuCollectionViewCell ()
@property (nonatomic,strong)UILabel *lab_title;

@end

@implementation MCPullMenuCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self){
        [self initView];
    }
    return self;
}
-(void)relayOutUIWithModel:(id)model{
    _lab_title.text =[model objectForKey:@"name" ];
}

-(void)initView{
    self.backgroundColor = [UIColor  cyanColor];
    _lab_title =[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_title.alpha=0.8;
    _lab_title.textColor=[UIColor blackColor];
    _lab_title.font=[UIFont systemFontOfSize:15];
    _lab_title.text =@"直选复式";
    _lab_title.textAlignment=NSTextAlignmentCenter;
    [self  addSubview:_lab_title];
    [_lab_title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.centerY.equalTo(self.mas_centerY);
        
    }];
    
    
}
+(CGSize)setSize:(id)data{
    if (!data) {
        return CGSizeZero;
    }else{
        return CGSizeMake(20,30);
    }
}

@end
